package com.qinggeng.project.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import com.qinggeng.framework.web.domain.BaseEntity;

/**
 * 用户商品限购记录对象 user_goods_limit_record
 *
 * @author smallfish
 * @date 2020-12-05
 */
@Data
public class UserGoodsLimitRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 限购记录ID */
    private Long recordId;

    /** 限购商品id */
    @Excel(name = "限购商品id")
    private Long goodsId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 商品限购数量 */
    @Excel(name = "商品限购数量")
    private Integer limitNum;

    /** 用户已购数量 */
    @Excel(name = "用户已购数量")
    private Integer buyNum;

    /** 用户购买日期 */
    @Excel(name = "用户购买日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyDate;


    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getLimitNum() {
        return limitNum;
    }

    public void setLimitNum(Integer limitNum) {
        this.limitNum = limitNum;
    }

    public Integer getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }

    public Date getBuyDate() {
        return buyDate;
    }

    public void setBuyDate(Date buyDate) {
        this.buyDate = buyDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("goodsId", getGoodsId())
            .append("userId", getUserId())
            .append("limitNum", getLimitNum())
            .append("buyNum", getBuyNum())
            .append("buyDate", getBuyDate())
            .toString();
    }
}
